package team.nmsg.ge.system.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import team.nmsg.ge.system.init.CommonDefine;

@Controller
public class HomeController {
	
	private static Logger logger =  LoggerFactory.getLogger(  SystemController.class );
	
	@RequestMapping(value = "/home")
    public String home(HttpServletRequest request, HttpSession session, ModelMap modelMap) {
    	logger.debug("LLLLLLLLLLLLLLLLLLLLLLLLLLLGGGGGGGGGGGGGIIIIIIIIIIIIIIIINNNNNNNNNNNN");
//    	modelMap.put("createTimeZH",CommonDefine.NMS_ZH_CREATE_TIME );
//    	modelMap.put("createTimeEN",CommonDefine.NMS_EN_CREATE_TIME );
    	
    	String parameter = request.getParameter("temp");
    	if( "jsp".equals(parameter) )  {
    		
    		 return "jsp/home" ;
    		
    	}else{
    		
    		return "home" ;
    		
    	}
    	
    	
      
    }
}
